﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Net.Sockets;

namespace SilverlightPlayground.Net
{
    public class SocketFailureException : Exception
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SocketFailureException"/> class.
        /// </summary>
        public SocketFailureException()
        { }

        /// <summary>
        /// Initializes a new instance of the <see cref="SocketFailureException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public SocketFailureException(string message)
            : base(message)
        { }

        /// <summary>
        /// Gets or sets the error code.
        /// </summary>
        /// <value>The error code.</value>
        public SocketError ErrorCode { get; set; }
    }
}
